export default (function(root, factory) {
    if (typeof module === 'object' && typeof module.exports === 'object') {
        console.log('我是CMJ')
        var depModule = require('./umd-module-depended')
        module.exports = factory(depModule);
    } else if (typeof define === 'function' && define.amd) {
        console.log('我是AMD')
        define(['depModule'], factory)
    } else if (typeof define === 'function' && define.cmd) {
        console.log('我是CMD')
        define(function(require, exports, module) {
            var depModule = require('depModule')
            module.exports = factory(depModule)
        })
    } else {
        console.log('没有模块环境')
        root.umdModule = factory(root.depModule)
    }
})(this, function(depModule) {
    return {
        name: 'modeleA'
    }
})